# if 5>2:
#     print("11111")
# else:
#     print("22222")
#
#abc三个数字比较大小
#嵌套
a=10
b=20
c=30
if a>b:
     if a>c:
       print("a")
     else:
       print("c")
else:
    if b>c:
        print("b")
    else:
        print("c")
#elif  #多重if
if a>b and a>c:
    print("a")
elif b>c and b>a:
    print("b")
elif c>a and c>b:
    print("c")

#数字游戏
num = 100

for i in range(1,num+1):
    if i % 7 == 0 or '7' in str(i):
        print(i,end=' ')

for i in range(1,num+1):
    if i % 7 == 0 or (i % 7 != 0 and str(i).count('7')>0):
        print(i,end=' ')

#  *
# ***
#*****
# ***
#  *
#range(起始数，最大数范围，每次间隔）
# num = 3
# for i in range(1,3+1):
#     #循环空格
#     for j in range(3-1,0,-1):
#         print(" ",end="")
#     #循环星号///////不对
#     for k in range(1,2*3,2):
#         print("*",end="")
#     print()

#打印星号
hang = 15
for i in range(1,2*((hang-1)//2+1),2):
    print(("*" * i).center(hang))
for i in range(2*((hang-1)//2)-1,0,-2):
    print(("*" * i).center(hang))

